#include "func.h"
#include "output.h"

static char* argv[] = {"shell\0",0};

int main()
{    
    int pid = fork();
    if(pid < 0) {
        printf("init: fork failed\n");
        exit(0);
    }
    // 这里是新的进程
    if(pid == 0) {
        execve("/shell\0", argv, NULL);
        exit(0);
    }
    while(1);
    return 0;
}